﻿function AqueleAjaxCore()
{
};

AqueleAjaxCore.prototype.ResultCallback = function(args, conext)
{
    if (args != '')
    {
        window.eval(args);
    }
};

AqueleAjaxCore.prototype.ErrorCallback = function(args, conext)
{
    if (args != '')
    {
        window.alert(args);
    }
};

AqueleAjaxCore.prototype.AlterHtmlElement = function(elementID, content)
{
    if (elementID == '') return;

    ___utilFunctions.ReplaceHtmlContent(elementID, content);
};

AqueleAjaxCore.prototype.AlterValueElement = function(elementID, value)
{
    if (elementID == '') return;
    
    document.getElementById(elementID).value = value;
};

AqueleAjaxCore.prototype.GetElementValue = function(elementID)
{
    if (elementID == '') return null;
    
    return document.getElementById(elementID).value;
};

AqueleAjaxCore.prototype.RaiseCallback = function(script)
{
    __theFormPostCollection.length = 0;
    __theFormPostData = '';
    WebForm_InitCallback();
    
    window.eval(script);
};